package top.leyi.entity;

import java.util.List;

public class College {
    private int id;
    private String name;
    private List<Class> classes;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Class> getClasses() {
        return classes;
    }

    public void setClasses(List<Class> classes) {
        this.classes = classes;
    }
    public void addClasses(Class clazz) {
        classes.add(clazz);
    }
}
